﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thesis_v01
{
   public class QuestionDetail
   {
      private int questionID;
      private int classID;
      private int questionNum;
      private QuestionType questionType;
      private string question;
      private ArrayList possibleAnswers;
      private ArrayList correctAnswers;

      public QuestionDetail()
      {
         possibleAnswers = new ArrayList();
         correctAnswers = new ArrayList();
      }

      public void AddAnswer(string answer)
      {
         possibleAnswers.Add(answer);
      }

      public void AddCorrect(string answer)
      {
         correctAnswers.Add(answer);
      }

      public static ArrayList CreateTFAnswers()
      {
         ArrayList answers = new ArrayList();

         answers.Add("True");
         answers.Add("False");

         return answers;
      }

      public int ID
      {
         get
         {
            return questionID;
         }
         set
         {
            questionID = value;
         }
      }

      public int Class
      {
         get
         {
            return classID;
         }
         set
         {
            classID = value;
         }
      }

      public int Number
      {
         get
         {
            return questionNum;
         }
         set
         {
            questionNum = value;
         }
      }

      public QuestionType Type
      {
         get
         {
            return questionType;
         }
         set
         {
            questionType = value;
         }
      }

      public string Question
      {
         get
         {
            return question;
         }
         set
         {
            question = value;
         }
      }

      public ArrayList PossibleAnswers
      {
         get
         {
            return possibleAnswers;
         }
         set
         {
            possibleAnswers = value;
         }
      }

      public ArrayList CorrectAnswers
      {
         get
         {
            return correctAnswers;
         }
         set
         {
            correctAnswers = value;
         }
      }
   }
}
